package com.skill.滑动窗口算法框架;

import java.util.*;

public class Solution {

    public void slidingWindow(String s, String t) {
        HashMap<Character, Integer> need, window;
        need = new HashMap<Character, Integer>();
        window = new HashMap<Character, Integer>();


        for (char c : t.toCharArray()) {
//            need[c]++;
            need.put(c, need.getOrDefault(c, 0) + 1);
        }

        int left = 0, right = 0;
        int valid = 0;

        while (right < s.length()) {
            char c = s.charAt(right);

        }
    }

    public static void main(String[] args) {
        String s = "asdasdasdasdqweqwetryiytuiczxsgkfsfaweltyeaqwdasd";
        Map<Character, Integer> need = new HashMap<Character, Integer>();

        for (char c : s.toCharArray()) {
//            need[c]++;
            need.put(c, need.getOrDefault(c, 0) + 1);
        }

        System.out.print(need);
    }
}


